<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:70:"D:\wamp\www\tp5\first\public/../application/admin\view\login\lock.html";i:1523869079;}*/ ?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="Dashboard">
    <meta name="keyword" content="Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">

    <title>解锁</title>

    <link href="/assets/css/bootstrap.css" rel="stylesheet">
    <link href="/assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
        
    <link href="/assets/css/style.css" rel="stylesheet">
    <link href="/assets/css/style-responsive.css" rel="stylesheet">
    <script src="/assets/js/jquery-1.8.3.min.js"></script>
 
  </head>

  <body onload="getTime()">

	  	<div class="container">
	  	
	  		<div id="showtime"></div>
	  			<div class="col-lg-4 col-lg-offset-4">
	  				<div class="lock-screen">
                        <h2>
                            <!-- 解锁 -->
                        <a data-toggle="modal" href="#myModal"><i class="glyphicon glyphicon-ok-sign"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <!-- 重新登录 -->
                        <a data-toggle="modal" href="/login/lockout"><i class="glyphicon glyphicon-log-out"></i></a>
                        </h2>
                        <p>UNLOCK&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LockOut</p>
                        
                          <!-- Modal -->
                         <div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="myModal" class="modal fade">
                            <div class="modal-dialog">
				         <form action="/admin/index" method="get" id='fro'>
                              <div class="modal-content">
                                  <div class="modal-header">
                                     
                                      <h4 class="modal-title">Welcome Back</h4>
                                  </div>
                                  <div class="modal-body">
                                      <p class="centered"><img class="img-circle" width="80" src="/assets/img/ui-sam.jpg"></p>
                                      <input type="password" name="pass" placeholder="Password"  class="form-control placeholder-no-fix">
            
                                  </div>
                                  <div class="modal-footer centered">
                                      <button  type='reset' class="btn btn-theme04" type="button">Cancel</button>
                                      <button type ='submit' class="btn btn-theme03" type="button">Login</button>
                                  </div>
                              </div>
                         </form>
                          </div>
                         </div>
				          <!-- modal -->
		  				
		  				<script>
                            $('#fro').submit(function(){
                                pass = $('input[name="pass"]').val();
                                $.ajax({
                                   type: "GET",
                                   async:false,
                                   // 权限验证
                                   url: "/login/yzLock/pass/"+pass,
                                   success: function(msg){
                                        if (msg==1) {
                                            // alert('可以登录');
                                            a = true;
                                        }else{
                                            alert('密码错误!');
                                            a = false;
                                        }
                                   }
                                });
                                return a;
                            })
                            
                                
                            

                        </script>
	  				</div>

	  			</div><!-- /col-lg-4 -->
	  	
	  	</div><!-- /container -->

    <script src="/assets/js/jquery.js"></script>
    <script src="/assets/js/bootstrap.min.js"></script>

    <script type="text/javascript" src="/assets/js/jquery.backstretch.min.js"></script>
    <script>
        $.backstretch("/assets/img/login-bg.jpg", {speed: 500});
    </script>

    <script>
        function getTime()
        {
            var today=new Date();
            var h=today.getHours();
            var m=today.getMinutes();
            var s=today.getSeconds();
            // add a zero in front of numbers<10
            m=checkTime(m);
            s=checkTime(s);
            document.getElementById('showtime').innerHTML=h+":"+m+":"+s;
            t=setTimeout(function(){getTime()},500);
        }

        function checkTime(i)
        {
            if (i<10)
            {
                i="0" + i;
            }
            return i;
        }
    </script>

  </body>
</html>
